import request from '@/config/axios'

export interface InfoVO {
  id?: number
  code?: number,
  name?: string,
  unit?: string,
  mount?: string,
  brand?: string,
  producer?: string,
  price?: string,
}

export interface DelVO {
  id?: number,
  ids?: number[]
}


// 查询报告列表
export const getInfoPage = (data: PageParam) => {
  return request.post({url: '/consumable/info/query', data})
}
// 查询报告列表
export const getInfo = (id: number) => {
  return request.get({url: '/consumable/info/queryById/' + id})
}

// 添加报告
export const addInfo = async (data: InfoVO) => {
  return await request.post({url: '/consumable/info/add', data})
}

// 删除报告
export const deleteInfo = async (data: any) => {
  return await request.delete({url: '/consumable/info/delete', data})
}

// 修改报告
export const updateInfo = async (data: InfoVO) => {
  return await request.put({url: '/consumable/info/edit', data})
}


